function hookPartEntry(pvWidget,pvCategory,pvOnSelect){
    pvWidget.bautocomplete("destroy");
	var lvUrl="./OMS320/guessPartList/{cat}?key={key}".format({cat:pvCategory});
	pvWidget.bautocomplete({
		minLength:0,
		source:function(query,process){			    
	            $.ajax({
	              url:lvUrl.format({key:query.trim().toUpperCase()}),
	              dataType: "json",
	              type:"POST",
	              //data : JSON.stringify(lvParam),
	              success: function( data ) 
	              {
	            	  return process(data);	            	  
	              }
	            });	        
	    },
	    formatItem:function(item){	    	
	        return item.fm_part;
	    },
	    setValue:function(item){
	        return item;
	    },
	    onShow:function(){
	    	//console.log(this);
	    },
	    updater:function(item){
	    	/*alert("updater");
	    	console.log(item);*/
	    	event.stopPropagation();
	    	if (pvOnSelect!=null){
	    		pvOnSelect(item);
	    	}
	    	return (item.fm_part);
	    }
	});			
}

....
//调用
$("#Win_Insert_part #fm_mt_cat").change(function(){
    	$("#Win_Insert_part #fm_part").val($("#Win_Insert_part #fm_mt_cat").children("[value='"+$("#Win_Insert_part #fm_mt_cat").val()+"']").html()) ;		
		hookPartEntry($("#Win_Insert_part #fm_part"),$("#Win_Insert_part #fm_mt_cat").val(),function(ret){
			  var lvData=ret;
				$("#Win_Insert_part #fm_unit").val(lvData.fm_unit);
				$("#Win_Insert_part #fm_sup").val(lvData.fm_sup);
				$("#Win_Insert_part #fm_url").val(lvData.fm_url);
			});	
		
	});
    